package com.imooc.code;

import com.imooc.security.core.validate.code.ImageCode;
import com.imooc.security.core.validate.code.ValidateCodeGenerator;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * Created by zghgchao 2018/4/21 23:56
 */
//@Component("imageCodeGenerator")//初始化为 imageCodeGenerator 的Bean
/*public class DemoImageCodeGenerator implements ValidateCodeGenerator {
    @Override
    public ImageCode generate(ServletWebRequest request) {
        System.out.println("更高级的图形验证码生成Bean");
        return null;//TODO 测试使用，上面的Component 不能放开，否则会报 NullPointerException
    }
}*/
